package cz.proks.schoolpupilbook.gwt.widget.form.userCourseRelation;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;

import cz.proks.schoolpupilbook.gwt.widget.common.LoggedUserPanel;
import cz.proks.schoolpupilbook.gwt.widget.common.UserCourseRelationForm;

public class UserCourseRelationWidget extends Composite {

	private static UserCourseRelationWidgetUiBinder uiBinder = GWT
			.create(UserCourseRelationWidgetUiBinder.class);

	interface UserCourseRelationWidgetUiBinder extends
			UiBinder<Widget, UserCourseRelationWidget> {
	}
	
	@UiField LoggedUserPanel loggedUserPanel;
	@UiField HTML text;
	@UiField UserCourseRelationForm userCourseRelationForm;

	public UserCourseRelationWidget() {
		initWidget(uiBinder.createAndBindUi(this));
		setText("You are edit student-course relation");
	}

	public LoggedUserPanel getLoggedUserPanel() {
		return loggedUserPanel;
	}

	public UserCourseRelationForm getUserCourseRelationForm() {
		return userCourseRelationForm;
	}
	
	public void setText(String text) {
		this.text.setHTML(text);
	}

}
